package com.briup.ptp.utils;

/**
 * @author GaoB
 * @date 2024/2/23 13:33:52
 * @description
 */
public class PTPException extends RuntimeException{
    private ResultCode resultCode;

    public PTPException(){}

    public PTPException(ResultCode resultCode){
        super(resultCode.message());
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
